package com.atguigu.gulimall.search.vo;

import lombok.Data;
import com.atguigu.common.to.es.SkuEsModel;
import java.util.ArrayList;
import java.util.List;

@Data
public class SearchResVo {

    // 查询到的所有商品信息
    private List<SkuEsModel> skuEsModels;

    // 当前页码
    private Integer pageNum;

    // 总页码
    private Integer totalPage;

    // 总记录数
    private Integer totalRecords;

    // 保存所有页码
    private List<Integer> pageNav;

    // 当前查询结果所涉及的品牌
    private List<BrandVo> brandVos;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    /** 当前查询结果所涉及的分类 */
    private List<CatalogVo> catalogVos;

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }

    /** 当前查询结果所涉及的属性 */
    private List<Attrs> attrs;

    @Data
    public static class Attrs{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    /**
     * 面包屑导航栏Vo
     */
    private List<NavVo> navs = new ArrayList<>();
    @Data
    public static class NavVo{
        private String attrName;
        private String attrValue;
        // 返回的链接
        private String link;
    }
    // 用于封装url中已有的属性id
    List<Long> attrIds = new ArrayList<>();

}
